function setLunboWork(){
    layui.use('carousel', function(){
        var carousel = layui.carousel;
        //建造实例
        carousel.render({
            elem: '#lunbo'
            ,width: '100%' //设置容器宽度
            ,arrow: 'always' //始终显示箭头s
            ,autoplay:false
            ,indicator:'none'
            //,anim: 'updown' //切换动画方式
        });
    });
}

function indexSetLunboClick(lunboList,showPicNum){

    arrow[0].onclick = function(){
        var num = getPicNum(lunboList);
        if(num==0){
            showPicNum.innerHTML = '0' + lunboList.children.length;
        }else{
            showPicNum.innerHTML = '0' + num;
        }

    };
    arrow[1].onclick = function(){

        var num = getPicNum(lunboList);
        if(num+2>lunboList.children.length){
            showPicNum.innerHTML = '01';
        }else{
            showPicNum.innerHTML = '0' + (num+2);
        }

    };
}

function getPicNum(lunboList){
    for(var i = 0 ; i < lunboList.children.length ; i++){
        if(lunboList.children[i].className == "layui-this"){
            return i;
        }
    }
}

function setArrowBg(arrow){
    arrow[0].classList.add("arrow_left");
    arrow[1].classList.add("arrow_right");
}

function setInputBottom(){
    $('input').focus(function(){
        $(this).parent().siblings(".employ_info_box").css({"border-bottom":"1px solid #736664"}).end().css({"border-bottom":"1px solid #3f7cf8"})
    }); 
    $('input').first().parent().css({"border-bottom":"1px solid #3f7cf8"});
}

function setExchangeClick(exchange){
    exchange.click(function(){
        var zIndex2 = parseInt($('.group_pic2').css('z-index'));
        if(zIndex2 > 0){
            $('.group_pic2').css('z-index','0');
        }else{
            $('.group_pic2').css('z-index','2');
        }
        
    });
}